import datetime

from app.backend.db import Base
from sqlalchemy.orm import Mapped, mapped_column, relationship

class Documents(Base):
    __tablename__ = 'documents'

    id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
    path: Mapped[str]
    date: Mapped[datetime.datetime]

    documents_text = relationship('Documents_text', back_populates='documents')